package com.tencent.sr.iris.baisc.saas.export.sdk;

import com.tencent.sr.rmall.material.interfaces.response.TaskRecordResponse;

public class TaskContextHolder {
    private static ThreadLocal<TaskRecordResponse> taskRecordThreadLocal = ThreadLocal.withInitial(TaskRecordResponse::new);

    public TaskContextHolder() {
    }

    public static void set(TaskRecordResponse taskRecordResponse) {
        taskRecordThreadLocal.set(taskRecordResponse);
    }

    public static TaskRecordResponse get() {
        return (TaskRecordResponse)taskRecordThreadLocal.get();
    }

    public static void clear() {
        taskRecordThreadLocal.remove();
    }
}